namespace Framework.UI
{
	public partial class RoleCreateFrame : UIFrame
	{
		UnityEngine.UI.Toggle tg_1;
		UnityEngine.UI.Button BtnCreateActor;
		UnityEngine.UI.Toggle tg_2;
		protected override void InitScriptBinder()
		{
			tg_1 = scriptBinder.GetValue() as UnityEngine.UI.Toggle;
			BtnCreateActor = scriptBinder.GetValue() as UnityEngine.UI.Button;
			tg_2 = scriptBinder.GetValue() as UnityEngine.UI.Toggle;
		}
		
		protected override void RegisterUIEvent()
		{
			tg_1.onValueChanged.AddListener(this.Ontg_1ValueChanged);
			BtnCreateActor.onClick.AddListener(this.OnBtnCreateActorClicked);
			tg_2.onValueChanged.AddListener(this.Ontg_2ValueChanged);
		}
		
		protected override void UnregisterUIEvent()
		{
			tg_1.onValueChanged.RemoveListener(this.Ontg_1ValueChanged);
			BtnCreateActor.onClick.RemoveListener(this.OnBtnCreateActorClicked);
			tg_2.onValueChanged.RemoveListener(this.Ontg_2ValueChanged);
		}
	}
}
